package com.zealfi.wk.configClient;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.integration.handler.AbstractReplyProducingMessageHandler;
import org.springframework.integration.router.AbstractMappingMessageRouter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by kuan at 2018-05-10 上午 9:15
 */
//@EnableDiscoveryClient //没有这个注解，照样能注册到注册中心
@SpringBootApplication
public class ConfigClientApplication {

    @Bean
    public AbstractMappingMessageRouter[] defaultMappingMessageRouter() {
        return null;
    }

    @Bean
    public List<AbstractReplyProducingMessageHandler> producingMessageHandlers() {
        return new ArrayList<>();
    }

    public static void main(String[] args) {
        new SpringApplicationBuilder(ConfigClientApplication.class).web(true).run(args);
    }
}
